#!/bin/bash
dir=./
service=""

usage() { echo "Usage: $0 [-s <game>] [-d <config path>]" 1>&2; exit 1; }

while getopts ":d:s:" o; do
    case "${o}" in
        s)
            service=${OPTARG}
            ;;
        d)
            dir=${OPTARG}
            ;;
        *)
            usage
            ;;
    esac
done
shift $((OPTIND-1))
CONFIG_DIR=$dir/gsconfig  docker-compose --env-file $dir/sys.env up -d $service